package com.zzty.txj.dao;

import com.zzty.txj.entity.SelfExam;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SelfMappper {
    @Insert("insert into selfExam(questionId,classId,date) values(#{questionId},#{classId},#{date})")
    public Integer insertQuestionId(SelfExam selfExam);
    @Select("select questionId from selfExam where date=#{date}")
    public String getQuestionIdByDate(String date);
   @Select("select * from selfExam")
    public List<SelfExam> getSelfExamToTable();
    @Select("select id from selfExam where date = #{date}")
    public  Integer getSelfExamId(String date);


}
